// 设备管理
export default [{
    path: '/ContractManage',
    component: () => import('../../pages/contract/Main.vue'),
    meta: {
      title: '合同管理'
    },
    children: [
      //合同查询的首页
      {
        path: 'home',
        name: 'contrant-home',
        component: () => import('../../pages/contract/home/index.vue'),
        meta: {
          title: '合同查询',
          noTab: true
        }
      },
      //合同管理的tab
      {
        path: 'currentperiod',
        name: 'contrant-manage-currentperiod',
        component: () => import('../../pages/contract/contractManage/currentperiod.vue'),
        meta: {
          title: '当期合同',
          noTab: true
        }
      },
      {
        path: 'history',
        name: 'contrant-manage-history',
        component: () => import('../../pages/contract/contractManage/history.vue'),
        meta: {
          title: '历史合同',
          noTab: true
        }
      },
      //合同管理的三个tab
      {
        path: 'prePayment',
        name: 'PrePayment',
        component: () => import('../../pages/contract/tab/prePayment.vue'),
        meta: {
          title: '待付款合同'
        }
      },
      {
        path: 'query',
        name: 'contract-query',
        component: () => import('../../pages/contract/tab/query.vue'),
        meta: {
          title: '合同查询'
        }
      },
      {
        path: 'draft',
        name: 'contract-draft',
        component: () => import('../../pages/contract/tab/draft.vue'),
        meta: {
          title: '合同草稿'
        }
      },
      //以下是 合同管理 和 合同查询 两个模块的公用的
      {
        path: 'drafting',
        name: 'contract-drafting',
        component: () => import('../../pages/contract/drafts/index.vue'),
        meta: {
          title: '合同信息',
          noTab: true
        }
      },
      {
        path: 'payInfo',
        name: 'contract-payInfo',
        component: () => import('../../pages/contract/payInfo/index.vue'),
        meta: {
          title: '付款记录',
          noTab: true
        },
      },
      // {
      //   path: 'bill',
      //   name: 'contract-bill',
      //   component: () => import('../../pages/contract/bill/index.vue'),
      //   meta: {
      //     title: '账单',
      //     noTab: true
      //   },
      // },
      {
        path: 'urgebill',
        name: 'urge-bill',
        component: () => import('../../pages/contract/bill/urgebill.vue'),
        meta: {
          title: '催缴单',
          noTab: true
        },
      },
      {
        path: 'exitletter',
        name: 'exit-letter',
        component: () => import('../../pages/contract/drafts/exitletter.vue'),
        meta: {
          title: '退场函',
          noTab: true
        },
      },
      {
        path: 'logInfo',
        name: 'contract-logInfo',
        component: () => import('../../pages/contract/logInfo/index.vue'),
        meta: {
          title: '更新信息',
          noTab: true
        },
      },
      {
        path: 'vital',
        name: 'contract-vital',
        component: () => import('../../pages/contract/vital/index.vue'),
        meta: {
          title: '重点关注',
          noTab: true
        },
      },
      {
        path: 'billmanage',
        name: 'bill-manage',
        component: () => import('../../pages/contract/bill/listTab.vue'),
        meta: {
          title: '账单管理',
          noTab: true
        },
      }
    ]
  },
  {
    path: '/ContractManage',
    component: () => import('../../pages/contract/contractManage/mainInfo.vue'),
    meta: {
      title: '合同管理'
    },
    children: [{
        path: 'info',
        name: 'contract-info',
        component: () => import('../../pages/contract/contractManage/info.vue'),
        meta: {
          title: '合同信息',
        }
      },
      {
        path: 'contractPay',
        name: 'contract-manage-pay-info',
        component: () => import('../../pages/contract/contractManage/infoContractPay.vue'),
        meta: {
          title: '合同信息',
        }
      },
      {
        path: 'bill',
        name: 'contract-bill',
        component: () => import('../../pages/contract/contractManage/bill.vue'),
        meta: {
          title: '合同账单',
        }
      },
      {
        path: 'expendDetail',
        name: 'contract-expend-detail',
        component: () => import('../../pages/contract/contractManage/expendDetail.vue'),
        meta: {
          title: '支出明细',
        }
      },
    ]
  },
  {
    path: '/ContractManage',
    component: () => import('../../pages/contract/contractManage/mainHistoryInfo.vue'),
    meta: {
      title: '合同管理'
    },
    children: [{
      path: 'historyInfo',
      name: 'history-info',
      component: () => import('../../pages/contract/contractManage/historyInfo.vue'),
      meta: {
        title: '历史合同明细',
      }
    }]
  },
  {
    path: '/ContractManage',
    component: () => import('../../pages/contract/contractManage/mainInfo.vue'),
    meta: {
      title: '合同管理'
    },
    children: [{
      path: 'create',
      name: 'contract-create',
      component: () => import('../../pages/contract/contractManage/add.vue'),
      meta: {
        title: '合同信息',
      }
    }, {
      path: 'approve',
      name: 'contract-approve',
      component: () => import('../../pages/contract/contractManage/approve.vue'),
      meta: {
        title: '审批信息',
      },
    }]
  },
  {
    path: '/ContractManage',
    component: () => import('../../pages/contract/contractManage/mainThrow.vue'),
    meta: {
      title: '合同管理'
    },
    children: [{
      path: 'throw',
      name: 'contract-throw',
      component: () => import('../../pages/contract/contractManage/throwLease.vue'),
      meta: {
        title: '合同信息',
      }
    }, {
      path: 'throwapprove',
      name: 'contract-throw-approve',
      component: () => import('../../pages/contract/contractManage/throwApprove.vue'),
      meta: {
        title: '审批信息',
      },
    }]
  },
  {
    path: '/ContractManage',
    component: () => import('../../pages/contract/contractManage/mainBill.vue'),
    meta: {
      title: '全部账单'
    },
    children: [{
      path: 'allbill',
      name: 'all-bill',
      component: () => import('../../pages/contract/contractManage/billAll.vue'),
      meta: {
        title: '全部账单',
      }
    }]
  },
]
